\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{filibook}

\DeclareOption*{\PassOptionsToClass{\CurrentOption}{book}}
\ProcessOptions

\LoadClass{book}
		
\def\@part[#1]#2{%
	\fancyhead[LE]{\fancyplain{}{\MakeUppercase{\partname\nobreakspace\thepart.#2}}}
    \ifnum \c@secnumdepth >-2\relax
      \refstepcounter{part}%
      \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
    \else
      \addcontentsline{toc}{part}{#1}%
    \fi
    \markboth{}{}%
    {\centering
     \interlinepenalty \@M
     \normalfont
     \ifnum \c@secnumdepth >-2\relax
       \huge\bfseries \partname\nobreakspace\thepart
       \par
       \vskip 20\p@
     \fi
     \Huge \bfseries #2\par}%
    \@endpart  }


\def\@endpart{%
	\vspace{30pt}
	}
	
\RequirePackage{minitoc}
\setcounter{parttocdepth}{1}
    		  		
\mtcsetfeature{parttoc}{before}{\empty}
\mtcsetfeature{parttoc}{after}{\empty}
\mtcsetrules{parttoc}{off}
\mtcsettitle{parttoc}{}	

\endinput